@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

:focus {
  outline: none;
}

.el-drawer__header {
  margin-bottom: 20px;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 5px;

  .box-card {
    .el-form-item {
      margin-bottom: 5px;
    }
  }

  .el-col {
    border: 1px solid transparent;
  }

  .el-select {
    width: 100% !important
  }

  .el-select,
  .el-cascader,
  .el-date-editor {
    width: 100%;
  }

  .el-table {
    margin-top: 10px;
    width: 100%;
  }

  .input-with-select {
    .el-input-group__prepend {
      background-color: #fff;

      .el-select {
        min-width: 200px;
      }
    }
  }

  .el-aside {
    margin-top: 10px;
    margin-right: 2px;
  }

  .el-main {
    padding: 0px;
  }

  .span-ellipsis {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    font-size: 13px;
  }
  
  .el-tree{
    overflow:auto;
    width: 100%;
    height: calc(100vh - 180px);
  }
  // .el-tree {

  //   flex: 1; //父元素采用flex布局
  //   min-width: 200px; //设置最小宽度
  //   height: 678px;
  //   background: rgba(245, 248, 250, 1);
  //   border: 1px solid #ebeef5;
  //   // border: 1px solid rgba(211, 219, 222, 1);
  //   padding: 1px 2px 14px;

  //   //设置滚动条高度，隐藏横向滚动条
  //   ::v-deep .el-scrollbar {
  //     height: 578px;
  //     margin-top: 10px;
  //     width: 96%;

  //     .el-scrollbar__wrap {
  //       overflow-x: hidden;
  //     }
  //   }
  // }

  //修改前面展开的图标
  // .el-tree .el-tree-node__expand-icon.expanded {
  // -webkit-transform: rotate(0deg);
  // transform: rotate(0deg);
  // }

  // .el-tree .el-icon-caret-right:before {
  //   background: url("~@/assets/folder.svg") no-repeat;
  //   content: "";
  //   display: block;
  //   width: 18px;
  //   height: 18px;
  //   font-size: 18px;
  //   background-size: 18px;
  // }

  // //判断子节点设置不同的样式
  // .el-tree-node__expand-icon.is-leaf::before {
  //   background: url("~@/assets/file.svg") no-repeat;
  //   content: '';
  //   display: block;
  //   width: 18px;
  //   height: 18px;
  //   font-size: 18px;
  //   background-size: 15px;
  // }

  // //设置每一项的背景颜色
  // .el-tree-node__content {
  //   background: #F5F8FA;
  //   height: 36px;
  // }

  // //设置当前选中项目的颜色
  // .el-tree-node.is-current>.el-tree-node__content {
  //   background-color: #FDE9BE !important; //背景颜色
  //   color: #333333; //字体颜色
  // }
}


 /*地图标题 infoWindow*/
 .BMap_bubble_title {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: left;
  background: transparent !important;
}
.BMap_pop {
}
.BMap_bubble_content p {
  font-size: 16px !important;
}
.BMap_pop .BMap_top {
  background: rgba(0, 0, 0, 0.8) !important;
  border: 0px !important;
}

.BMap_pop .BMap_center {
  border: 0 !important;
  background: rgba(0, 0, 0, 0.8) !important;
}

.BMap_pop .BMap_bottom {
  border: 0 !important;
  background: rgba(0, 0, 0, 0.8) !important;
}
.BMap_pop .BMap_bubble_content {
  color: #ffffff;
}
.BMap_pop div:nth-child(3) {
  background: transparent !important;
}

.BMap_pop div:nth-child(3) div {
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.8) !important;
  border: 0 !important;
  width: 29px !important;
}

.BMap_pop div:nth-child(1) {
  border-radius: 3px 0 0 0;
  background: transparent !important;
  border: 0 !important;
}

.BMap_pop div:nth-child(1) div {
  background: rgba(0, 0, 0, 0.8) !important;
}

.BMap_pop div:nth-child(5) {
  border-radius: 0 0 0 3px;
  background: transparent !important;
  border: 0 !important;
}

.BMap_pop div:nth-child(9) {
}
.BMap_pop div:nth-child(5) div {
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.8) !important;
}

.BMap_pop div:nth-child(7) {
  background: transparent !important;
}

.BMap_pop div:nth-child(7) div {
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.8) !important;
  width: 29px !important;
}
.BMap_pop div:nth-child(8) {
  display: none;
}

.BMap_pop img:nth-of-type(1) {
  position: absolute;
}